home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / kernel / cmd.def < prev    next >
Encoding:
Text File  |  1995-02-01  |  4.9 KB  |  204 lines  |  [TEXT/R*ch]

  1. /* Definitions of cross-interface commands for Xconq.
  2.    Copyright (C) 1993, 1994, 1995 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. DEF_CMD(  ' ' , "reserve", "U", do_reserve,
  10.   "put into reserve for this turn")
  11.  
  12. DEF_CMD(  '?' , "help", "", do_help,
  13.   "display help info")
  14.  
  15. DEF_CMD(  '!' , "detonate", "U", do_detonate,
  16.   "detonate")
  17.  
  18. DEF_CMD(  '.' , "recenter", "", do_recenter,
  19.   "center around the current point or selected units")
  20.  
  21. DEF_CMD(  '#' , "distance", "", do_distance,
  22.   "display distance to selected place")
  23.  
  24. DEF_CMD(  'a' , "attack", "U", do_attack,
  25.   "attack")
  26.  
  27. DEF_CMD(  'A' , "add-terrain", "U", do_add_terrain,
  28.   "add terrain")
  29.  
  30. DEF_CMD(C('A'), "auto", "U", do_auto,
  31.   "toggle AI control of unit")
  32.  
  33. DEF_CMD(  'b' , "southwest", "U", do_dir,
  34.   "move southwest")
  35.  
  36. DEF_CMD(  'B' , "southwest-multiple", "U", do_dir_multiple,
  37.   "move southwest multiple")
  38.  
  39. DEF_CMD(  'C' , "clear-plan", "U", do_clear_plan,
  40.   "clear unit plans")
  41.  
  42. DEF_CMD(C('C'), "end-turn", "", do_end_turn,
  43.   "end activity for this turn")
  44.  
  45. DEF_CMD(  'd' , "delay", "U", do_delay,
  46.   "delay unit action until after others have moved")
  47.  
  48. DEF_CMD(  'D' , "disband", "U", do_disband,
  49.   "disband a unit")
  50.  
  51. DEF_CMD(C('D'), "detach", "U", do_detach,
  52.   "detach part of a unit")
  53.  
  54. DEF_CMD(  'f' , "fire", "U", do_fire,
  55.   "fire at a unit")
  56.  
  57. DEF_CMD(  'F' , "formation", "U", do_set_formation,
  58.   "set position of units relative to another")
  59.  
  60. DEF_CMD(C('F'), "fire-into", "U", do_fire_into,
  61.   "fire into a location")
  62.  
  63. DEF_CMD(  'g' , "give", "U", do_give,
  64.   "give supplies")
  65.  
  66. DEF_CMD(  'G' , "give-unit", "US", do_give_unit,
  67.   "give unit to side")
  68.  
  69. DEF_CMD(  'h' , "west", "U", do_dir,
  70.   "move west")
  71.  
  72. DEF_CMD(  'H' , "west-multiple", "U", do_dir_multiple,
  73.   "move west multiple")
  74.  
  75. DEF_CMD(  'j' , "south", "U", do_dir,
  76.   "move south")
  77.  
  78. DEF_CMD(  'J' , "south-multiple", "U", do_dir_multiple,
  79.   "move south multiple")
  80.  
  81. DEF_CMD(  'k' , "north", "U", do_dir,
  82.   "move north")
  83.  
  84. DEF_CMD(  'K' , "north-multiple", "U", do_dir_multiple,
  85.   "move north multiple")
  86.  
  87. DEF_CMD(  'l' , "east", "U", do_dir,
  88.   "move east")
  89.  
  90. DEF_CMD(  'L' , "east-multiple", "U", do_dir_multiple,
  91.   "move east multiple")
  92.  
  93. DEF_CMD(  'm' , "move-to", "U", do_move_to,
  94.   "move to a place")
  95.  
  96. DEF_CMD(  'M' , "message", "S", do_message,
  97.   "send a message to another side or sides")
  98.  
  99. DEF_CMD(C('M'), "end-turn", "", do_end_turn,
  100.   "end activity for this turn")
  101.  
  102. DEF_CMD(  'n' , "southeast", "U", do_dir,
  103.   "move southeast")
  104.  
  105. DEF_CMD(  'N' , "southeast-multiple", "U", do_dir_multiple,
  106.   "move southeast multiple")
  107.  
  108. DEF_CMD(  'o' , "other", "", do_other,
  109.   "other commands")
  110.  
  111. DEF_CMD(  'p' , "produce", "U", do_produce,
  112.   "set material production")
  113.  
  114. DEF_CMD(  'P' , "build", "U", do_build,
  115.   "set up construction tasks")
  116.  
  117. DEF_CMD(  'Q' , "quit", "", do_quit,
  118.   "get out of the game")
  119.  
  120. DEF_CMD(  'r' , "return", "U", do_return,
  121.   "return to a resupply point")
  122.  
  123. DEF_CMD(  'R' , "remove-terrain", "U", do_remove_terrain,
  124.   "remove terrain")
  125.  
  126. DEF_CMD(C('R'), "refresh", "", do_refresh,
  127.   "refresh/redraw display")
  128.  
  129. DEF_CMD(  's' , "sleep", "U", do_sleep,
  130.   "go to sleep")
  131.  
  132. DEF_CMD(  'S' , "save", "", do_save,
  133.   "save the game into a file")
  134.  
  135. DEF_CMD(  't' , "take", "U", do_take,
  136.   "take supplies from unit or terrain")
  137.  
  138. DEF_CMD(  'T' , "take-unit", "U", do_take_unit,
  139.   "take unit from another side")
  140.  
  141. DEF_CMD(  'u' , "northeast", "U", do_dir,
  142.   "move northeast")
  143.  
  144. DEF_CMD(  'U' , "northeast-multiple", "U", do_dir_multiple,
  145.   "move northeast multiple")
  146.  
  147. DEF_CMD(  'w' , "wake", "U", do_wake,
  148.   "wake units up")
  149.  
  150. DEF_CMD(  'W' , "wakeall", "U", do_wake_all,
  151.   "wake units and all their occupants up")
  152.  
  153. DEF_CMD(  'y' , "northwest", "U", do_dir,
  154.   "move northwest")
  155.  
  156. DEF_CMD(  'Y' , "northwest-multiple", "U", do_dir_multiple,
  157.   "move northwest multiple")
  158.  
  159. DEF_CMD(  'z' , "survey", "", do_survey,
  160.   "switch between surveying and moving")
  161.  
  162. /* Commands with no dedicated single characters. */
  163.  
  164. DEF_CMD(   0  , "add-player", "", do_add_player,
  165.   "add another player to the game")
  166.  
  167. DEF_CMD(   0  , "ai", "", do_ai_side,
  168.   "switch side over to AI control")
  169.  
  170. DEF_CMD(   0  , "copying", "", do_copying,
  171.   "display copying conditions")
  172.  
  173. DEF_CMD(   0  , "name", "U", do_name,
  174.   "name a unit")
  175.  
  176. DEF_CMD(   0  , "print", "", do_print_view,
  177.   "print a view of the world")
  178.  
  179. DEF_CMD(   0  , "version", "", do_version,
  180.   "display version info")
  181.  
  182. DEF_CMD(   0  , "warranty", "", do_warranty,
  183.   "display non-warranty")
  184.  
  185. #ifdef DESIGNERS
  186.  
  187. DEF_CMD(   0  , "design", "", do_design,
  188.   "toggle designer abilities")
  189.  
  190. #endif /* DESIGNERS */
  191.  
  192. #ifdef DEBUGGING
  193.  
  194. DEF_CMD(   0  , "D", "", do_debug,
  195.   "toggle general debugging")
  196.  
  197. DEF_CMD(   0  , "DG", "", do_debugg,
  198.   "toggle graphical interface debugging")
  199.  
  200. DEF_CMD(   0  , "DM", "", do_debugm,
  201.   "toggle AI (mplayer) debugging")
  202.  
  203. #endif /* DEBUGGING */
  204.